package com.haiyou.dc.aggregate.linklist;

public interface MyList<E> {

    int ELEMENT_NOT_FOUND = -1;

    int size();

    boolean isEmpty();

    int add(E element);

    int add(int index, E element);

    E set(int index, E element);

    boolean contains(E element);

    E get(int index);

    void remove(int index);

    int indexOf(E element);

    void clear();


}
